package com.jctrip.hotel.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.context.annotation.ComponentScan;

/**
 * SpringBoot启动类
 */
@ComponentScan(basePackages = {"com.jctrip.hotel.*"})
@SpringBootApplication
public class StartupApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(StartupApplication.class);
        springApplication.addListeners(new ApplicationPidFileWriter());
        springApplication.run(args);
    }
}
